--- dwarf-20130729.org/libdwarf/Makefile.in	2014-08-16 00:24:21.571099471 +0200
+++ dwarf-20130729/libdwarf/Makefile.in	2014-08-16 00:32:11.204077057 +0200
@@ -138,8 +138,10 @@
 	echo "do nothing"
 common.o: $(srcdir)/common.c $(srcdir)/common.h
 	$(CC) $(CFLAGS) -c $(srcdir)/common.c
-gennames: $(srcdir)/gennames.c $(srcdir)/dwarf.h common.o
-	$(CC) $(CFLAGS) $(srcdir)/gennames.c common.o $(LDFLAGS) -o gennames
+common_host.o: $(srcdir)/common.c $(srcdir)/common.h
+	$(HOSTCC) $(CFLAGS) -c $(srcdir)/common.c -o common_host.o
+gennames: $(srcdir)/gennames.c $(srcdir)/dwarf.h common_host.o
+	$(HOSTCC) $(CFLAGS) $(srcdir)/gennames.c common_host.o $(LDFLAGS) -o gennames
 dwarf_names.c dwarf_names.h: gennames $(srcdir)/dwarf.h
 	rm -f dwarf_names.h dwarf_names.c
 	./gennames  @dwarf_namestable@  -i $(srcdir) -o .
